package cn.techaction.service;

import javax.servlet.http.HttpSession;

import cn.techaction.common.SverResponse;
import cn.techaction.pojo.User;
import cn.techaction.vo.ActionUserVo;

public interface ActionUserService {
	
	/*用户登录*/
	public SverResponse<User> doLogin(String account,String password);
	/*用户注册*/
	public SverResponse<String> doRegister(User user);
	
	/*信息校验验证*/
	public SverResponse<String> checkValidation(String str,String type);
    /**
     * 更新用户信息
     * @param userVo
     * @return
     */
	public SverResponse<User> updateUserInfo(ActionUserVo userVo);
	//根据账号查找用户
	public SverResponse<User> findUserByAccount (String account);
	//校验用户答案
	public SverResponse<String> checkUserAnswer(String account, String question, String asw);
	//重置密码
	public SverResponse<String> resetPassword(Integer userId, String password);
	public SverResponse<String> updatePassword(User user, String newpassword, String oldpassword);

}
